home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / info / xemacs.info-16 < prev    next >
Encoding:
GNU Info File  |  1995-09-01  |  19.6 KB  |  433 lines

  1. This is Info file ../../info/xemacs.info, produced by Makeinfo-1.63
  2. from the input file xemacs.texi.
  3.  
  4.    This file documents the XEmacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992, 1993, 1994 Lucid, Inc.  Copyright (C) 1993, 1994 Sun
  8. Microsystems, Inc.  Copyright (C) 1995 Amdahl Corporation.
  9.  
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.  
  14.    Permission is granted to copy and distribute modified versions of
  15. this manual under the conditions for verbatim copying, provided also
  16. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  17. General Public License" are included exactly as in the original, and
  18. provided that the entire resulting derived work is distributed under the
  19. terms of a permission notice identical to this one.
  20.  
  21.    Permission is granted to copy and distribute translations of this
  22. manual into another language, under the above conditions for modified
  23. versions, except that the sections entitled "The GNU Manifesto",
  24. "Distribution" and "GNU General Public License" may be included in a
  25. translation approved by the author instead of in the original English.
  26.  
  27. 
  28. File: xemacs.info,  Node: Quitting,  Next: Lossage,  Prev: Customization,  Up: Top
  29.  
  30. Quitting and Aborting
  31. =====================
  32.  
  33. `C-g'
  34.      Quit.  Cancel running or partially typed command.
  35.  
  36. `C-]'
  37.      Abort innermost recursive editing level and cancel the command
  38.      which invoked it (`abort-recursive-edit').
  39.  
  40. `M-x top-level'
  41.      Abort all recursive editing levels that are currently executing.
  42.  
  43. `C-x u'
  44.      Cancel an already-executed command, usually (`undo').
  45.  
  46.    There are two ways of cancelling commands which are not finished
  47. executing: "quitting" with `C-g', and "aborting" with `C-]' or `M-x
  48. top-level'.  Quitting is cancelling a partially typed command or one
  49. which is already running.  Aborting is getting out of a recursive
  50. editing level and cancelling the command that invoked the recursive
  51. edit.
  52.  
  53.    Quitting with `C-g' is used for getting rid of a partially typed
  54. command or a numeric argument that you don't want.  It also stops a
  55. running command in the middle in a relatively safe way, so you can use
  56. it if you accidentally start executing a command that takes a long
  57. time.  In particular, it is safe to quit out of killing; either your
  58. text will ALL still be there, or it will ALL be in the kill ring (or
  59. maybe both).  Quitting an incremental search does special things
  60. documented under searching; in general, it may take two successive
  61. `C-g' characters to get out of a search.  `C-g' works by setting the
  62. variable `quit-flag' to `t' the instant `C-g' is typed; Emacs Lisp
  63. checks this variable frequently and quits if it is non-`nil'.  `C-g' is
  64. only actually executed as a command if it is typed while Emacs is
  65. waiting for input.
  66.  
  67.    If you quit twice in a row before the first `C-g' is recognized, you
  68. activate the "emergency escape" feature and return to the shell.  *Note
  69. Emergency Escape::.
  70.  
  71.    You can use `C-]' (`abort-recursive-edit') to get out of a recursive
  72. editing level and cancel the command which invoked it.  Quitting with
  73. `C-g' does not do this, and could not do this because it is used to
  74. cancel a partially typed command within the recursive editing level.
  75. Both operations are useful.  For example, if you are in the Emacs
  76. debugger (*note Lisp Debug::.) and have typed `C-u 8' to enter a
  77. numeric argument, you can cancel that argument with `C-g' and remain in
  78. the debugger.
  79.  
  80.    The command `M-x top-level' is equivalent to "enough" `C-]' commands
  81. to get you out of all the levels of recursive edits that you are in.
  82. `C-]' only gets you out one level at a time, but `M-x top-level' goes
  83. out all levels at once.  Both `C-]' and `M-x top-level' are like all
  84. other commands and unlike `C-g' in that they are effective only when
  85. Emacs is ready for a command.  `C-]' is an ordinary key and has its
  86. meaning only because of its binding in the keymap.  *Note Recursive
  87. Edit::.
  88.  
  89.    `C-x u' (`undo') is not strictly speaking a way of cancelling a
  90. command, but you can think of it as cancelling a command already
  91. finished executing.  *Note Undo::.
  92.  
  93. 
  94. File: xemacs.info,  Node: Lossage,  Next: Bugs,  Prev: Quitting,  Up: Top
  95.  
  96. Dealing With Emacs Trouble
  97. ==========================
  98.  
  99.    This section describes various conditions in which Emacs fails to
  100. work, and how to recognize them and correct them.
  101.  
  102. * Menu:
  103.  
  104. * Stuck Recursive::    `[...]' in mode line around the parentheses.
  105. * Screen Garbled::     Garbage on the screen.
  106. * Text Garbled::       Garbage in the text.
  107. * Unasked-for Search:: Spontaneous entry to incremental search.
  108. * Emergency Escape::   Emergency escape--
  109.                         What to do if Emacs stops responding.
  110. * Total Frustration::  When you are at your wits' end.
  111.  
  112. 
  113. File: xemacs.info,  Node: Stuck Recursive,  Next: Screen Garbled,  Prev: Lossage,  Up: Lossage
  114.  
  115. Recursive Editing Levels
  116. ------------------------
  117.  
  118.    Recursive editing levels are important and useful features of Emacs,
  119. but they can seem like malfunctions to the user who does not understand
  120. them.
  121.  
  122.    If the mode line has square brackets `[...]' around the parentheses
  123. that contain the names of the major and minor modes, you have entered a
  124. recursive editing level.  If you did not do this on purpose, or if you
  125. don't understand what that means, you should just get out of the
  126. recursive editing level.  To do so, type `M-x top-level'.  This is
  127. called getting back to top level.  *Note Recursive Edit::.
  128.  
  129. 
  130. File: xemacs.info,  Node: Screen Garbled,  Next: Text Garbled,  Prev: Stuck Recursive,  Up: Lossage
  131.  
  132. Garbage on the Screen
  133. ---------------------
  134.  
  135.    If the data on the screen looks wrong, the first thing to do is see
  136. whether the text is actually wrong.  Type `C-l', to redisplay the
  137. entire screen.  If the text appears correct after this, the problem was
  138. entirely in the previous screen update.
  139.  
  140.    Display updating problems often result from an incorrect termcap
  141. entry for the terminal you are using.  The file `etc/TERMS' in the Emacs
  142. distribution gives the fixes for known problems of this sort.
  143. `INSTALL' contains general advice for these problems in one of its
  144. sections.  Very likely there is simply insufficient padding for certain
  145. display operations.  To investigate the possibility that you have this
  146. sort of problem, try Emacs on another terminal made by a different
  147. manufacturer.  If problems happen frequently on one kind of terminal but
  148. not another kind, the real problem is likely to be a bad termcap entry,
  149. though it could also be due to a bug in Emacs that appears for terminals
  150. that have or lack specific features.
  151.  
  152. 
  153. File: xemacs.info,  Node: Text Garbled,  Next: Unasked-for Search,  Prev: Screen Garbled,  Up: Lossage
  154.  
  155. Garbage in the Text
  156. -------------------
  157.  
  158.    If `C-l' shows that the text is wrong, try undoing the changes to it
  159. using `C-x u' until it gets back to a state you consider correct.  Also
  160. try `C-h l' to find out what command you typed to produce the observed
  161. results.
  162.  
  163.    If a large portion of text appears to be missing at the beginning or
  164. end of the buffer, check for the word `Narrow' in the mode line.  If it
  165. appears, the text is still present, but marked off-limits.  To make it
  166. visible again, type `C-x n w'.  *Note Narrowing::.
  167.  
  168. 
  169. File: xemacs.info,  Node: Unasked-for Search,  Next: Emergency Escape,  Prev: Text Garbled,  Up: Lossage
  170.  
  171. Spontaneous Entry to Incremental Search
  172. ---------------------------------------
  173.  
  174.    If Emacs spontaneously displays `I-search:' at the bottom of the
  175. screen, it means that the terminal is sending `C-s' and `C-q' according
  176. to the poorly designed xon/xoff "flow control" protocol.  You should
  177. try to prevent this by putting the terminal in a mode where it will not
  178. use flow control, or by giving it enough padding that it will never
  179. send a `C-s'.  If that cannot be done, you must tell Emacs to expect
  180. flow control to be used, until you can get a properly designed terminal.
  181.  
  182.    Information on how to do these things can be found in the file
  183. `INSTALL' in the Emacs distribution.
  184.  
  185. 
  186. File: xemacs.info,  Node: Emergency Escape,  Next: Total Frustration,  Prev: Unasked-for Search,  Up: Lossage
  187.  
  188. Emergency Escape
  189. ----------------
  190.  
  191.    Because at times there have been bugs causing Emacs to loop without
  192. checking `quit-flag', a special feature causes Emacs to be suspended
  193. immediately if you type a second `C-g' while the flag is already set,
  194. so you can always get out of XEmacs.  Normally Emacs recognizes and
  195. clears `quit-flag' (and quits!) quickly enough to prevent this from
  196. happening.
  197.  
  198.    When you resume Emacs after a suspension caused by multiple `C-g', it
  199. asks two questions before going back to what it had been doing:
  200.  
  201.      Auto-save? (y or n)
  202.      Abort (and dump core)? (y or n)
  203.  
  204. Answer each one with `y' or `n' followed by RET.
  205.  
  206.    Saying `y' to `Auto-save?' causes immediate auto-saving of all
  207. modified buffers in which auto-saving is enabled.
  208.  
  209.    Saying `y' to `Abort (and dump core)?' causes an illegal instruction
  210. to be executed, dumping core.  This is to enable a wizard to figure out
  211. why Emacs was failing to quit in the first place.  Execution does not
  212. continue after a core dump.  If you answer `n', execution does
  213. continue.  With luck, Emacs will ultimately check `quit-flag' and quit
  214. normally.  If not, and you type another `C-g', it is suspended again.
  215.  
  216.    If Emacs is not really hung, but is just being slow, you may invoke
  217. the double `C-g' feature without really meaning to.  In that case,
  218. simply resume and answer `n' to both questions, and you will arrive at
  219. your former state.  Presumably the quit you requested will happen soon.
  220.  
  221.    The double-`C-g' feature may be turned off when Emacs is running
  222. under a window system, since the window system always enables you to
  223. kill Emacs or to create another window and run another program.
  224.  
  225. 
  226. File: xemacs.info,  Node: Total Frustration,  Prev: Emergency Escape,  Up: Lossage
  227.  
  228. Help for Total Frustration
  229. --------------------------
  230.  
  231.    If using Emacs (or something else) becomes terribly frustrating and
  232. none of the techniques described above solve the problem, Emacs can
  233. still help you.
  234.  
  235.    First, if the Emacs you are using is not responding to commands, type
  236. `C-g C-g' to get out of it and then start a new one.
  237.  
  238.    Second, type `M-x doctor RET'.
  239.  
  240.    The doctor will make you feel better.  Each time you say something to
  241. the doctor, you must end it by typing RET RET.  This lets the doctor
  242. know you are finished.
  243.  
  244. 
  245. File: xemacs.info,  Node: Bugs,  Prev: Lossage,  Up: Top
  246.  
  247. Reporting Bugs
  248. ==============
  249.  
  250.    Sometimes you will encounter a bug in Emacs.  Although we cannot
  251. promise we can or will fix the bug, and we might not even agree that it
  252. is a bug, we want to hear about bugs you encounter in case we do want
  253. to fix them.
  254.  
  255.    To make it possible for us to fix a bug, you must report it.  In
  256. order to do so effectively, you must know when and how to do it.
  257.  
  258. When Is There a Bug
  259. -------------------
  260.  
  261.    If Emacs executes an illegal instruction, or dies with an operating
  262. system error message that indicates a problem in the program (as
  263. opposed to something like "disk full"), then it is certainly a bug.
  264.  
  265.    If Emacs updates the display in a way that does not correspond to
  266. what is in the buffer, then it is certainly a bug.  If a command seems
  267. to do the wrong thing but the problem corrects itself if you type
  268. `C-l', it is a case of incorrect display updating.
  269.  
  270.    Taking forever to complete a command can be a bug, but you must make
  271. certain that it was really Emacs's fault.  Some commands simply take a
  272. long time.  Type `C-g' and then `C-h l' to see whether the input Emacs
  273. received was what you intended to type; if the input was such that you
  274. KNOW it should have been processed quickly, report a bug.  If you don't
  275. know whether the command should take a long time, find out by looking
  276. in the manual or by asking for assistance.
  277.  
  278.    If a command you are familiar with causes an Emacs error message in a
  279. case where its usual definition ought to be reasonable, it is probably a
  280. bug.
  281.  
  282.    If a command does the wrong thing, that is a bug.  But be sure you
  283. know for certain what it ought to have done.  If you aren't familiar
  284. with the command, or don't know for certain how the command is supposed
  285. to work, then it might actually be working right.  Rather than jumping
  286. to conclusions, show the problem to someone who knows for certain.
  287.  
  288.    Finally, a command's intended definition may not be best for editing
  289. with.  This is a very important sort of problem, but it is also a
  290. matter of judgment.  Also, it is easy to come to such a conclusion out
  291. of ignorance of some of the existing features.  It is probably best not
  292. to complain about such a problem until you have checked the
  293. documentation in the usual ways, feel confident that you understand it,
  294. and know for certain that what you want is not available.  If you are
  295. not sure what the command is supposed to do after a careful reading of
  296. the manual, check the index and glossary for any terms that may be
  297. unclear.  If you still do not understand, this indicates a bug in the
  298. manual.  The manual's job is to make everything clear.  It is just as
  299. important to report documentation bugs as program bugs.
  300.  
  301.    If the online documentation string of a function or variable
  302. disagrees with the manual, one of them must be wrong, so report the bug.
  303.  
  304. How to Report a Bug
  305. -------------------
  306.  
  307.    When you decide that there is a bug, it is important to report it
  308. and to report it in a way which is useful.  What is most useful is an
  309. exact description of what commands you type, starting with the shell
  310. command to run Emacs, until the problem happens.  Always include the
  311. version number of Emacs that you are using; type `M-x emacs-version' to
  312. print this.
  313.  
  314.    The most important principle in reporting a bug is to report FACTS,
  315. not hypotheses or categorizations.  It is always easier to report the
  316. facts, but people seem to prefer to strain to posit explanations and
  317. report them instead.  If the explanations are based on guesses about
  318. how Emacs is implemented, they will be useless; we will have to try to
  319. figure out what the facts must have been to lead to such speculations.
  320. Sometimes this is impossible.  But in any case, it is unnecessary work
  321. for us.
  322.  
  323.    For example, suppose that you type `C-x C-f /glorp/baz.ugh RET',
  324. visiting a file which (you know) happens to be rather large, and Emacs
  325. prints out `I feel pretty today'.  The best way to report the bug is
  326. with a sentence like the preceding one, because it gives all the facts
  327. and nothing but the facts.
  328.  
  329.    Do not assume that the problem is due to the size of the file and
  330. say, "When I visit a large file, Emacs prints out `I feel pretty
  331. today'." This is what we mean by "guessing explanations".  The problem
  332. is just as likely to be due to the fact that there is a `z' in the file
  333. name.  If this is so, then when we got your report, we would try out
  334. the problem with some "large file", probably with no `z' in its name,
  335. and not find anything wrong.  There is no way in the world that we
  336. could guess that we should try visiting a file with a `z' in its name.
  337.  
  338.    Alternatively, the problem might be due to the fact that the file
  339. starts with exactly 25 spaces.  For this reason, you should make sure
  340. that you inform us of the exact contents of any file that is needed to
  341. reproduce the bug.  What if the problem only occurs when you have typed
  342. the `C-x a l' command previously?  This is why we ask you to give the
  343. exact sequence of characters you typed since starting to use Emacs.
  344.  
  345.    You should not even say "visit a file" instead of `C-x C-f' unless
  346. you know that it makes no difference which visiting command is used.
  347. Similarly, rather than saying "if I have three characters on the line,"
  348. say "after I type `RET A B C RET C-p'," if that is the way you entered
  349. the text.
  350.  
  351.    If you are not in Fundamental mode when the problem occurs, you
  352. should say what mode you are in.
  353.  
  354.    If the manifestation of the bug is an Emacs error message, it is
  355. important to report not just the text of the error message but a
  356. backtrace showing how the Lisp program in Emacs arrived at the error.
  357. To make the backtrace, you must execute the Lisp expression `(setq
  358. debug-on-error t)' before the error happens (that is to say, you must
  359. execute that expression and then make the bug happen).  This causes the
  360. Lisp debugger to run (*note Lisp Debug::.).  The debugger's backtrace
  361. can be copied as text into the bug report.  This use of the debugger is
  362. possible only if you know how to make the bug happen again.  Do note
  363. the error message the first time the bug happens, so if you can't make
  364. it happen again, you can report at least that.
  365.  
  366.    Check whether any programs you have loaded into the Lisp world,
  367. including your `.emacs' file, set any variables that may affect the
  368. functioning of Emacs.  Also, see whether the problem happens in a
  369. freshly started Emacs without loading your `.emacs' file (start Emacs
  370. with the `-q' switch to prevent loading the init file).  If the problem
  371. does NOT occur then, it is essential that we know the contents of any
  372. programs that you must load into the Lisp world in order to cause the
  373. problem to occur.
  374.  
  375.    If the problem does depend on an init file or other Lisp programs
  376. that are not part of the standard Emacs system, then you should make
  377. sure it is not a bug in those programs by complaining to their
  378. maintainers first.  After they verify that they are using Emacs in a
  379. way that is supposed to work, they should report the bug.
  380.  
  381.    If you can tell us a way to cause the problem without visiting any
  382. files, please do so.  This makes it much easier to debug.  If you do
  383. need files, make sure you arrange for us to see their exact contents.
  384. For example, it can often matter whether there are spaces at the ends
  385. of lines, or a newline after the last line in the buffer (nothing ought
  386. to care whether the last line is terminated, but tell that to the bugs).
  387.  
  388.    The easy way to record the input to Emacs precisely is to to write a
  389. dribble file; execute the Lisp expression:
  390.  
  391.      (open-dribble-file "~/dribble")
  392.  
  393. using `Meta-ESC' or from the `*scratch*' buffer just after starting
  394. Emacs.  From then on, all Emacs input will be written in the specified
  395. dribble file until the Emacs process is killed.
  396.  
  397.    For possible display bugs, it is important to report the terminal
  398. type (the value of environment variable `TERM'), the complete termcap
  399. entry for the terminal from `/etc/termcap' (since that file is not
  400. identical on all machines), and the output that Emacs actually sent to
  401. the terminal.  The way to collect this output is to execute the Lisp
  402. expression:
  403.  
  404.      (open-termscript "~/termscript")
  405.  
  406. using `Meta-ESC' or from the `*scratch*' buffer just after starting
  407. Emacs.  From then on, all output from Emacs to the terminal will be
  408. written in the specified termscript file as well, until the Emacs
  409. process is killed.  If the problem happens when Emacs starts up, put
  410. this expression into your `.emacs' file so that the termscript file will
  411. be open when Emacs displays the screen for the first time.  Be warned:
  412. it is often difficult, and sometimes impossible, to fix a
  413. terminal-dependent bug without access to a terminal of the type that
  414. stimulates the bug.
  415.  
  416.    The newsgroup `comp.emacs.xemacs' may be used for bug reports, other
  417. discussions and requests for assistance.
  418.  
  419.    If you don't have access to this newgroup, you can subscribe to the
  420. mailing list version: the newsgroup is bidirectionally gatewayed into
  421. the mailing list `xemacs@cs.uiuc.edu'.
  422.  
  423.    To be added or removed from this mailing list, send mail to
  424. `xemacs-request@cs.uiuc.edu'.  Do not send requests for addition to the
  425. mailing list itself.
  426.  
  427.    The mailing lists and newsgroups are archived on our anonymous FTP
  428. server, `ftp.cs.uiuc.edu', and at various other archive sites around
  429. the net. You should also check the `FAQ' in `/pub/xemacs' on our
  430. anonymous FTP server. It provides some introductory information and
  431. help for initial configuration problems.
  432.  
  433.